'use strict';

module.exports = {
  up: async (queryInterface, Sequelize) => {
    const { DATE, STRING } = Sequelize;
    await queryInterface.createTable('clients', {
      id: { type: STRING(50), primaryKey: true},
      client_secret: STRING(100),
      redirect_uris: STRING(500),
      grants: STRING(300),
      created_at: DATE,
      updated_at: DATE,
    });
  },

  down: async (queryInterface, Sequelize) => {
    await queryInterface.dropTable('clients');
  }
};
